package com.tz.farm_feeding.domain;

import com.alibaba.fastjson.JSONObject;

public class User {
    private Integer id;

    private String name;

    private String password;

    private String info;

    private String phone;

    private String imgurl;

    private Integer groupid;

    @Override
    public String toString() {
      JSONObject jsonObject = new JSONObject();
      // SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
      jsonObject.put("id", getId());
      jsonObject.put("name", getName());
      jsonObject.put("password", getPassword());
      jsonObject.put("info", getInfo());
      jsonObject.put("phone", getPhone());
      jsonObject.put("imgurl", getImgurl());
      jsonObject.put("groupid", getGroupid());
      return jsonObject.toJSONString();
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info == null ? null : info.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl == null ? null : imgurl.trim();
    }

    public Integer getGroupid() {
        return groupid;
    }

    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }
}